package cn.stronglink.asset.module.assetmanage.transfer.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.AssetExtUsing;
import cn.stronglink.asset.model.Transfer;
import cn.stronglink.asset.model.TransferDetail;
import cn.stronglink.asset.module.assetmanage.itasset.vo.ItAssetVo;
import cn.stronglink.asset.module.assetmanage.transfer.vo.OriginalAssetInfo;


public interface TransferMapper {

	void insertTransfer(Transfer transfer);

	OriginalAssetInfo getAsset(@Param("assetId")Long assetId);

	void insertTransferDetail(TransferDetail detail);

	void remove(@Param("id")Long id);

	List<TransferDetail> qryTransferDetailByTransferId(@Param("transferId")Long transferId);

	void delTransferDetail(@Param("id")Long id);

	void updateTranser(Transfer transfer);

	void updateTransferDetail(TransferDetail transferDtail);

	List<Transfer> queryTransferList(Pagination page,@Param("params") Map<String, Object> params);

	List<TransferDetail> queryTransferDetailList(Pagination page, @Param("params")Map<String, Object> params);

	Transfer qryById(@Param("id")Long id);

	TransferDetail queryDetailById(@Param("id")Long id);

	void updateAssetExtUsingByAssetId(AssetExtUsing assetExtUsing);
	
	public List<ItAssetVo> querAssetListByParam(Pagination page,@Param("params") Map<String, Object> params);
	
}
